package com.bmps.springcloud.insuredmicroservice.util.cloudplatform;

/**
 * 业务异常类
 * @author luofei
 * @date 2019/6/18 18:06
 **/
public class BusinessException extends RuntimeException {

    private String code;

    public BusinessException(String message) {
        super(message);
        this.code = RespStatus.FAIL;
    }

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}